<?php
use yii\helpers\Url;
?>
<footer class="app-footer">
    <a href="<?= Url::toRoute(['site/index']) ?>" <?php
        if( Yii::$app->controller->id == 'site' ){
            echo 'class="active"';
        }
    ?>>
        <span class="app-icon-home"></span>
        首页
    </a>
    <a href="<?= Url::toRoute(['goods/list']) ?>" <?php
        if( Yii::$app->controller->id == 'goods' ){
            echo 'class="active"';
        }
    ?>>
        <span class="app-icon-cart"></span>
        购买服务
    </a>
    <a href="<?= Url::toRoute(['member/index']) ?>" <?php
        if( Yii::$app->controller->id == 'member' ){
            echo 'class="active"';
        }
    ?>>
        <span class="app-icon-member"></span>
        个人中心
    </a>
</footer>